﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Tourist/TouristMasterpage.master" AutoEventWireup="true" CodeFile="Contact.aspx.cs" Inherits="Tourist_Contact" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<script type="text/javascript" 
src="http://maps.googleapis.com/maps/api/js?sensor=false&language=vi"></script>
<script type="text/javascript">
    var map;
    function initialize() {
        var myLatlng = new google.maps.LatLng(10.751634, 106.711653);
        var myOptions = {
            zoom: 16,
            center: myLatlng,
            mapTypeId: google.maps.MapTypeId.ROADMAP
        }
        map = new google.maps.Map(document.getElementById("div_id"), myOptions);
        // Biến text chứa nội dung sẽ được hiển thị
        var text;
        text = "<b style='color:#00F' " +
         "style='text-align:center'><img src='images/Album/batman_a.jpg' width='50px' hight='200px'  />Trung Tâm Lữ Hành - Khách Sạn Ngọc Tùng <br/> Địa chỉ: 361 Trần Xuân Soạn, Phường Tân Kiểng, Quận 7, TP. HCM.<br/>Điện thoại: 84.8 38728802 - Fax: 84.8 38723045" +
     " ";
        var infowindow = new google.maps.InfoWindow(
    { content: text,
        size: new google.maps.Size(100, 50),
        position: myLatlng
    });
        infowindow.open(map);
        var marker = new google.maps.Marker({
            position: myLatlng,
            map: map,
            title: "Trung Tâm Lữ Hành - Khách Sạn Ngọc Tùng"
        });
    }
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
     
    <%------------------%>
    <div class="header" style="width: 556px; margin-left: -2px; text-align: left;margin-top:5px">
    <span class="text">LIÊN HỆ</span>
    <div style="margin-left:-2px">
           <div class="col2 pad">
        <div style="padding:5px;font-size:14px">
            <div>
                <div style="width:50px;margin-top:5px;float:left">Họ tên:</div>
                <asp:TextBox ID="txtName" runat="server" class="textbox"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*"
                            ControlToValidate="txtName"></asp:RequiredFieldValidator>
            </div>
            <div>
                <div style="width:50px;margin-top:5px;float:left">Đại chỉ:</div>
                <asp:TextBox ID="txtAddress" runat="server" class="textbox"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*"
                            ControlToValidate="txtAddress"></asp:RequiredFieldValidator>
            </div>
            <div>
                <div style="width:50px;margin-top:5px;float:left">Email:</div>
                <asp:TextBox ID="txtEmail" runat="server" class="textbox"></asp:TextBox>               
                            <asp:RegularExpressionValidator
                   ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ID="RegularExpressionValidator2" runat="server" ErrorMessage="*" ControlToValidate="txtEmail"></asp:RegularExpressionValidator>
            </div>
            <div>Nội dung:
                <asp:TextBox ID="txtContent" runat="server" TextMode="MultiLine" Width="533px" Height="100px"></asp:TextBox>                
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*"
                            ControlToValidate="txtContent"></asp:RequiredFieldValidator>
            </div>
            <div style="margin-left:505px">
                                     <asp:Button ID="Button1" runat="server" Text="Gửi" onclick="btnSend_Click" class="animatedButton animatedButtonText"></asp:Button></div>
           </div>
    </div><br />
  <body onLoad="initialize()">
    <div id="div_id" style="height:500px; width:558px;font-size:12px"></div>
</body>
       
       
    </div>
    <div class="clear">
    </div>
</div>
    <%------------------%>
</asp:Content>

